// Copyright (c) 2025, 大连理工大学 (Dalian University of Technology)
//
// Licensed under the Mulan PSL v2.
// You can use this file according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of the License at
//
//     http://license.coscl.org.cn/MulanPSL2
//
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. SEE THE MULAN PSL v2
// FOR MORE DETAILS.

/*
 * @Author: qiulin_JXGM ql1746365080@gmail.com
 * @Date: 2024-10-10 11:04:57
 * @LastEditors: qiulin 1746365080@qq.com
 * @LastEditTime: 2024-12-30 16:34:25
 * @FilePath: \SGFEM\Import\BDFImport\ControlData\DATA\Constraint.cpp
 */

#include "SetControl.h"

#include <cstring>

#include "Utility/Logging/SGLogger.h"

CONTROLDATA_ENTRY_PARSER_REG (SET)

SG::DataStructure::Common::Status SG::Import::BDF::CONTROLDATA::ParseSET (SG::DataStructure::FEM::Subcase::ControlInfo& controlInfo,
                                                                          SG::Utility::SGParameter&                     subcase)
{
    // 需要一个添加接口， subcase setid，list
    // 一个获取接口 subcaseid setid

    // SG::Utility::SGParameter ParameterSET;
    // ParameterSET.AddString (SG::DataStructure::FEM::Subcase::SC_MAINKEY, controlInfo.m_Vaule);
    // if (controlInfo.m_vecKeys.size () != 0)
    // {
    //     ParameterSET.AddStringArray (SG::DataStructure::FEM::Subcase::SC_VECTORKEY, controlInfo.m_vecKeys);
    // }
    // if (controlInfo.m_mapKeys.size () != 0)
    // {
    //     SG::Utility::SGParameter mapParameter;
    //     for (auto iter : controlInfo.m_mapKeys)
    //     {
    //         mapParameter.AddString (iter.first, iter.second);
    //     }
    //     ParameterSET.AddValue (SG::DataStructure::FEM::Subcase::SC_MAPKEY, mapParameter);
    // }
    // subcase.AddValue ("SET", ParameterSET);
    return SG::DataStructure::Common::Status::STATUS_Success;
}
